package com.wdb.modules.system.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.util.Date;

/**
 * @author: wendaobai@qq.com
 * @date: 2024/3/25 0025 15:29
 */
@Data
@RequiredArgsConstructor
public class JobExcelDTO {
  @ExcelProperty("名称")
  private String name;

  @ExcelProperty("是否启用")
  private String enabled;

  @ExcelProperty("创建时间")
  @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @ExcelProperty("修改时间")
  private Date updateTime;
}
